//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package 力扣.题库.未分类;

public class demo_1863 {
    public demo_1863() {
    }

    public static void main(String[] args) {
        int[] nums = new int[]{5, 1, 6};
        System.out.println(subsetXORSum(nums));
    }

    public static int subsetXORSum(int[] nums) {
        int or = 0;

        for(int x : nums) {
            or |= x;
        }

        return or << nums.length - 1;
    }
}
